package 组合模式;

//首先是文件类：File.java
public abstract class File {
	String name;

	public File(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public abstract void display();
}
